package one.stand.fallback;

import one.stand.feign.CrmFegin;
import one.stand.model.ResultModel;
import one.stand.request.*;
import one.stand.response.*;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Component
public class CrmFallBack implements CrmFegin {

    @Override
    public ResultModel<Boolean> addFollow(FollowRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<FollowRecordResponse>> getFollowList(FollowRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getCompanyStaffList(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updateCardWelcomeSpeech(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<BusinessCardResponse>> getList(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCompanyUserInfo(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }


    @Override
    public ResultModel getCardPoster(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addMoneyNum(UserTaskRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel moveCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel quitCompany(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel dissolutionCompany(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addCompany(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyResponse> invitation(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyResponse> getCompany(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyResponse> getCompanyId(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCompanyAllInfo(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updCompany(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<DynamicResponse>> selectDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<DynamicResponse>> getDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel doComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delComment(CommentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectWebsiteInfo(WebsiteRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectDemand(DemandRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addWebsiteInfo(WebsiteRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertCompanyVideo(CompanyVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delCompanyVideo(CompanyVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveCompanyVideo(CompanyVideoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyRecruitResponse>> selectCompanyRecruit(CompanyRecruitRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addCompanyRecruit(CompanyRecruitRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addHrPhone(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delCompanyRecruit(CompanyRecruitRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> invitePoster(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Long> addLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addLableList(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyCustomerLableResponse>> getTree(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CustomerResponse>> countCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CustomerResponse>> getCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<GetCustomerInfoResponse> getCustomerInfo(Long cardId) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> manualAdd(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel inputDealMoney(InputDealMoneyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<IndustryResponse>> getList() {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel customerAnalysis(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CrmSeeRecordResponse>> getSeeRecordList(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getPcCount(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectGoodsTypeInfo(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsTypeInfo(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel moveGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsInfo(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsInfo(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsInfoList(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodSpecInfo(GoodSpecRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodsInfo(GoodsRequest request){
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodSpecInfo(GoodSpecRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectOrdersInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<OrdersResponse>> getOrdersInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateOrderState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateRefundState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public String backRefund(String request) {
        return fail();
    }

    public String fail() {
        return "<xml> \n" +
                "  <return_code><![CDATA[fail]]></return_code>\n" +
                "  <return_msg><![CDATA[OK]]></return_msg>\n" +
                "</xml>";
    }

    @Override
    public ResultModel getGrossIncome(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectFinanceMall(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectFinanceDeal(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectFinanceCompany(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectCustomerNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectOrderNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectInteractionNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectDelNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> updCustomerState(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> updCustomerLabel(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<InputDealMoneyResponse>> getInputDealList(InputDealMoneyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CustomerResponse>> getCustomerList(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel countCustomerAnalysis(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel personalData(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel sevenData(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel dataSummary(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel turnoverRate(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel newCustomerNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel followCustomerNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel consultationNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel activeCustomerNum(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addConsultRecord(ConsultRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsForwardRecord(GoodsForwardRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addDynamicForwardRecord(DynamicForwardRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel transferGoods(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getWxTwoCode(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Long> verifyExpired(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Integer> formIdCount(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delFormId(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<UserCommonResponse>> selectUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delUserCommonList(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveUserCommon(UserCommonRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<NoticeResponse>> selectEffectiveList(NoticeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getProductsCount(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsTypeList(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsTypePage(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsPage(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ProductsResponse> getProductsInfo(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectAppointmentPage(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AppointmentResponse> getAppointmentInfo(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertAppointment(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updAppointmentState(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }
}
